package cn.labelnet.android.roomdb.base.data.dao

import android.arch.persistence.room.Dao
import android.arch.persistence.room.Insert
import android.arch.persistence.room.Query
import cn.labelnet.android.roomdb.base.data.tables.UserTable

/**
 * Created by yuan on 02/08/2017.
 * 用户 dao
 */
@Dao
interface UserDao {

    /**
     * 插入一个用户
     */
    @Insert
    fun insertUser(user: UserTable)

    /**
     * 插入多个用户
     */


    /**
     * 查询全部用户
     */
    @Query("select * from user")
    fun selectUsers(): List<UserTable>
}